package com.example.smartcity_poverty.ui.AllService.JobSearch.adapter

import com.example.smartcity_poverty.App.Companion.getToken
import com.example.smartcity_poverty.Base.BaseRecyclerAdapter
import com.example.smartcity_poverty.logic.Repository.api
import com.example.smartcity_poverty.logic.Repository.coroutine
import com.example.smartcity_poverty.logic.ServiceBean.JobSearchBean.JsMeListModel
import com.example.smartcity_poverty.ui.AllService.JobSearch.model.JsMeListEntity
import kotlinx.android.synthetic.main.re_js_me_list.*
import kotlinx.coroutines.Dispatchers

/**
 *  created by ikun
 *  ANDROID STUDIO - version 4.0
 *  email: jinkunwei41@gmail.com
 * --------------------------------
 *
 **/
class JsMeListAllAdapter(
    val list: MutableList<JsMeListEntity>,
    layoutId: Int
) : BaseRecyclerAdapter<JsMeListEntity>(list, layoutId) {
    override fun setData(
        view: BaseViewHolder.ViewFind,
        data: JsMeListEntity,
        position: Int,
        holder: BaseViewHolder
    ) {
        val d = list[position]

        view.jsMeListTv1.text = d.tv1
        view.jsMeListTv2.text = d.tv2
        view.jsMeListTv3.text = d.tv3
        view.jsMeListTv4.text = d.tv4
    }
}